/// ---------------------------------------------
///
/// 江懷玉
/// 
/// ---------------------------------------------


//
// 定义类型
//
var formatRating = function (elCell, oRecord, oColumn, sData) {
    var url = "" + oRecord.getData("DIR") + "\\" + oRecord.getData("PhotoFileName");
    var _turl = "" + oRecord.getData("DIR").replace("\\Upload\\Images\\", "\\Upload\\Thumb\\") + "\\" + oRecord.getData("PhotoFileName"); ;
    elCell.innerHTML = "<img src='"+_turl+"' style=\"width:20px;height:20px\">";
};

var formatImageView = function (elCell, oRecord, oColumn, sData) {
    var url = "" + oRecord.getData("DIR") + "\\" + oRecord.getData("PhotoFileName");
    var _turl = "" + oRecord.getData("DIR") + oRecord.getData("PhotoFileName"); ;
    elCell.innerHTML = "<a href='"+url+"' target='_blank'>下載</a>";
};